package com.lhy.framework.test.bean;

import java.util.Random;

/**
 * @ClassName UserService
 * @Description
 * @Author lihaiyang
 * @Date 2022/9/8 22:01
 * @Version 1.0
 */
public class UserService implements IUserService{

    public UserService() {
    }

    @Override
    public String queryUserInfo() {
        try {
            Thread.sleep(new Random(1).nextInt(100));
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return "尐海哥，1000001，深圳";
    }

    @Override
    public String register(String userName) {
        try {
            Thread.sleep(new Random(1).nextInt(100));
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return "注册用户：" + userName + " success";
    }


}
